<template>
	<view class="">
		<web-view :src="url"></web-view>
	</view>
	
</template>

<script>
	export default{
		data(){
			return{
				url:"",
				api:"https://patient-hospital.quezhen.vip/"
				
			}
		},
		onLoad(options) {
			console.log(options)
			if (options.webType == 'AGREEMENT') {
			  let url = this.api + `#/article/${options.articleType}`
			  console.log(url)
			  this.url=url;
			 
			  let title = ''
			  if (options.articleType == 11) {
			    title = '用户协议'
			  } else if (options.articleType == 12) {
			    title = '隐私政策'
			  } else if (options.articleType == 6) {
			    title = '互联网问诊知情同意书'
			  }
			  uni.setNavigationBarTitle({
			    title
			  })
			} else {
			
			}
		}
	}
	
</script>

<style>
</style>